<template>
	<div>
		<h2>我的课程</h2>
		<hr />
		<table border="1px">
			<tr>
				<th>任课教师编号</th>
				<th>任课教师名称</th>
				<th>班级编号</th>
				<th>班级名称</th>
				<th>课程编号</th>
				<th>课程名称</th>
			</tr>
			<tr v-for=" x in data.user">
				<th>{{x.user.uid}}</th>
				<th>{{x.user.uname}}</th>
				<th>{{x.clz.clzno}}</th>
				<th>{{x.clz.clzname}}</th>
				<th>{{x.course.cno}}</th>
				<th>{{x.course.cname}}</th>
			</tr>
		</table>
	</div>
</template>

<script setup>
	import {ref, reactive,onMounted,computed} from"vue"
		import {$get,$postx,$postj,$postf} from '../../ajax/index.js'
		// import alert from '../../utils/doalert.js'
	const data=reactive({
		user:[]
	})
onMounted(()=>{
	$get("/api/fore/stu/findMyCourse").then((reap)=>{//获取数据
		data.user=reap.data.data//获取数据
		console.log(reap.data.data)
	})
})
</script>

<style>
</style>
